package com.smforj.ssm.modules.lib.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.smforj.ssm.frame.core.dao.impl.BaseDaoSupport;
import com.smforj.ssm.frame.core.enums.JDataSource;
import com.smforj.ssm.modules.lib.constant.ADataSource;
import com.smforj.ssm.modules.lib.dao.MissionDao;
import com.smforj.ssm.modules.lib.domain.trolley.MissionBook;

@Repository
@JDataSource(ADataSource.SLAVE1)
public class MissionDaoImpl extends BaseDaoSupport<MissionBook> implements MissionDao {  

	@Override
	public List<MissionBook> getMissionBook(String executor, String nowTime) {
		Map<String, Object> params = new HashMap<String, Object>(); 
		params.put("executor", executor); 
		params.put("nowTime", nowTime); 
		return getSqlSessionTemplate().selectList(getSqlName("getMissionBook"), params);
	}
 

}
